package com.skydonkey.pojo.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

public class AccountInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long uid;
    private String headPicUrl;

    @JsonFormat(
            shape=JsonFormat.Shape.STRING,
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8")
    private Timestamp birthday;
    private String briefIntroduction;
    private String signature;
    private String sex;
    private String province;
    private String county;

    // Getter 和 Setter 方法
    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Timestamp getBirthday() {
        return birthday;
    }

    public AccountInfo setBirthday(Timestamp birthday) {
        this.birthday = birthday;
        return this;
    }

    public String getBriefIntroduction() {
        return briefIntroduction;
    }

    public AccountInfo setBriefIntroduction(String briefIntroduction) {
        this.briefIntroduction = briefIntroduction;
        return this;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getHeadPicUrl() {
        return headPicUrl;
    }

    public AccountInfo setHeadPicUrl(String headPicUrl) {
        this.headPicUrl = headPicUrl;
        return this;
    }

    @Override
    public String toString() {
        return "AccountInfo{" +
                "uid=" + uid +
                ", headPicUrl='" + headPicUrl + '\'' +
                ", birthday=" + birthday +
                ", briefIntroduction='" + briefIntroduction + '\'' +
                ", signature='" + signature + '\'' +
                ", sex='" + sex + '\'' +
                ", province='" + province + '\'' +
                ", county='" + county + '\'' +
                '}';
    }
}
